Redis supports LUA scripts from 2.6, similar to the functionality of transactions, where multiple Redis commands can be executed by the Lua script atom. Redis provides the eval and Evalsha commands to execute LUA scripts.Create and modify LUA's bad
Date: 2014.8.7
Part IV the C API
27 Calling C from Lua
Here, Lua calls the C function, which does not mean that Lua can call any C function. Like calling the Lua function by C, the following rules must be followed: Passing parameters to obtain the
Table is the only data structure in LUA, and table allows you to implement modules, packages, and objects (object) representations. For example, IO in Io.read is a module, and read is an index in the IO module (using the string "read" as the index
Value and type (values and Types)Lua is a dynamic type language, which means that variables have no type and only values have types. The language does not have a type definition, and all values carry their own type.All values in Lua are class-one
The table is a LUA data structure used to help us create different data types, such as arrays, dictionaries, and so on.Lua table uses associative arrays, and you can use any type of value to count the index of the group, but this value cannot be nil.
Describes the concept of a table in Lua and its related operations.
This article mainly introduces the concept of a table in Lua and its related operation methods. It is the basic knowledge in Lua's getting started learning. For more information,
Lua sorting-table database and lua sorting tableTable attributes
Table library is composed of some auxiliary functions.The function uses table as an array.. There are functions for inserting and deleting elements in the list, functions for sorting
These standard LUA functions are available in most LUA parsing. It is indisputable that we can look at the LUA Web site, but some of the fewer functions have been blizzard. All LUA functions are listed below. The LUA note in WoW API does not provide
Lua's scripting language makes it easy to handle business logic as a configuration file, but in a lot of places where it needs to be done, it's a little less than a quick-sort algorithm that compares the LUA built-in sorting algorithm to the C + +
From getting started to giving up Lua -- Statement
Lua statements include assignment, control structure, function call, and variable declaration.
An execution unit of lua is called a statement group. A statement group is a string of statement
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.